package com.cin.cma.common.model.finixx.request;

import com.cin.cma.common.model.finixx.base.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class VoucherRedeemRequest extends BaseRequest {
    private String userId;
    /**
     * 本地测试没有，粤科测试有
     */
    private String saleChannelCd;
    private List<VoucherRedeemInfoRequest> info;
    private String bookingList;

    public String getBookingList() {
        String text = "";
        if (this.info != null) {
            for (VoucherRedeemInfoRequest current : this.info) {
                text += current.getBookingId();
            }
        }
        return text;
    }
}
